import numpy as np
nd_array = np.arange(25)
print("原数组", nd_array)
print('-' * 35)
nd_reshape = nd_array.reshape(5,5)
print("reshape改变形状", nd_reshape)
print('-' * 35)
print("reshape后元素组不变", nd_array)
